package io;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        File file=new File("book.txt");
        FileOutputStream fos=new FileOutputStream(file);
        for (int i=97;i<123;i++){
            fos.write(i);
        }
        fos.close();
        FileInputStream fis=new FileInputStream(file);
        char c= (char)fis.read();
        System.out.println(c);
        fis.close();
    }
}
